package com.wisezone.permission.service.impl;
import java.util.List;

import com.wisezone.common.exception.WzWebException;
import com.wisezone.common.service.impl.BaseServiceImpl;
import com.wisezone.permission.bean.entity.WzDatadictionaryEntity;
import com.wisezone.permission.bean.search.WzDatadictionarySearch;
import com.wisezone.permission.dao.WzDatadictionaryDao;
import com.wisezone.permission.service.WzDatadictionaryService;
/**
 *
 *数据字典; InnoDB free: 24576 kB
 *@author create by 
 *create date 2010-08-27 10:05:04 update date 2010-08-27 10:05:04
 *
 */
public class WzDatadictionaryServiceImpl extends BaseServiceImpl implements WzDatadictionaryService{

	 /**
	  *
	  *
	  *
	  */
	 private WzDatadictionaryDao wzDatadictionaryDao;

	 /**
	  * 获得父类
	  * @return
	  * @throws WzWebException
	  */
	 public List<WzDatadictionaryEntity> getParentList() throws WzWebException{
		 
		 WzDatadictionarySearch searchEntity = new WzDatadictionarySearch();
		 searchEntity.addSqlClause("parent_id < 1");
		 List<WzDatadictionaryEntity> list = this.listAll(searchEntity);
		 return list;
	 }

	 public void setWzDatadictionaryDao(WzDatadictionaryDao wzDatadictionaryDao){
		 this.setBaseDao(wzDatadictionaryDao);
		 this.wzDatadictionaryDao = wzDatadictionaryDao;
	 }



}